<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var date=new Date()
        document.write(date.getFullYear())
        document.write(date.getMonth()+1)
        document.write(date.getDate())
        document.write(date.getHours())
        document.write(date.getMinutes())
        document.write(date.getSeconds())


        date.setFullYear(2022)
        document.write(date.getFullYear())


        var str='10'
        var res=10+str
        console.log(res);
        
    </script>
</head>
<body>
    
</body>
</html>